#region using
using System;
#endregion

namespace Demo.DbmlReader
{
  public partial class ColumnType
  {
    public partial class NVarCharColumnType
    {
      // Place custom additions to the class here.  Changes to
      // this file will not be overwritten by the code generator.

      #region IsLengthRequired
      public override bool IsLengthRequired
      {
        get
        {
          return true;
        }
      }
      #endregion

      #region GetFullSqlDataType()
      public override string GetFullSqlDataType()
      {
        throw new Exception("Length must be specified.");
      }
      #endregion

      #region GetFullSqlDataType(int length)
      public override string GetFullSqlDataType(int length)
      {
        return String.Format("nvarchar({0})", length);
      }
      #endregion
    }
  }
}
